grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir	= "target/test-reports"

grails.plugin.repos.discovery.jetty7Repository="http://grails-jetty7.googlecode.com/svn/"
grails.plugin.repos.distribution.jetty7Repository="https://grails-jetty7.googlecode.com/svn/"

//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
  // inherit Grails' default dependencies
  inherits( "global" ) 
  {
    // uncomment to disable ehcache
    excludes 'ehcache', 'oscache', 'ehcache-core'
    //    excludes 'jstl', 'jsp-api', 'mail', 'oro', 'hsqldb'
    //    excludes 'commons-codec', 'commons-io', 'commons-lang', 'commons-collections', 'commons-el', 'commons-beanutils'
    //    excludes 'commons-validator', 'commons-digest', 'commons-fileupload', 'commons-dbcp', 'commons-pool'
    //    excludes 'jta', 'ejb3-persistence', 'aspectjweaver', 'aspectjrt', 'cglib-nodep', 'xpp3_min', 'mail'
    //    excludes 'aopalliance', 'sitemesh' 
  }
  log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
  repositories 
      {
        grailsPlugins()
        grailsHome()
        
        //mavenRepo "http://repo1.maven.org/maven2/"
        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        //mavenLocal()
        mavenCentral()
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
      }
  dependencies
      {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
        
        //        runtime(
        //        'org.mortbay.jetty:jetty:6.1.21',
        //            'org.mortbay.jetty:jetty-naming:6.1.21',
        //            'org.mortbay.jetty:jetty-util:6.1.21',
        //            'org.mortbay.jetty:jetty-plus:6.1.21'/*,'org.mortbay.jetty:jsp-2.0:6.1.21'*/
        //            ) 
        //        {
        //          excludes 'commons-el','ant', 'sl4j-api','sl4j-simple','jcl104-over-slf4j','xercesImpl','xmlParserAPIs', 'servlet-api'
        //          excludes 'mail', 'commons-lang'
        //        }
        runtime(
        'org.eclipse.jetty:jetty-http:7.0.1.v20091125',
            'org.eclipse.jetty:jetty-server:7.0.1.v20091125',
            'org.eclipse.jetty:jetty-webapp:7.0.1.v20091125',
            'org.eclipse.jetty:jetty-plus:7.0.1.v20091125'
            )
        {
          excludes 'commons-el','ant', 'sl4j-api','sl4j-simple','jcl104-over-slf4j','xercesImpl','xmlParserAPIs', 'servlet-api'
          excludes 'mail', 'commons-lang'
        }
        build "commons-io:commons-io:1.4", "commons-lang:commons-lang:2.4"
      }  
}
//grails.war.resources = 
//    { stagingDir ->
//      //      delete(file:"${stagingDir}/WEB-INF/lib/jetty-6.1.21.jar")
//      // Wipe-out jetty artifacts (they are not needed inside WAR).
//      delete() {fileset(dir: "${stagingDir}/WEB-INF/lib/", includes: "jetty-*.jar")} 
//    }

